<%--
  Created by IntelliJ IDEA.
  User: 14190
  Date: 2022/11/4
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    // 从session取出信息
    out.println(session.getAttribute("name"));


    Integer count = (Integer)application.getAttribute("count");
    if(count==null) count=0;
    count++;
    out.println("网站总访问数:"+count);
    application.setAttribute("count", count);

%>
</body>
</html>
